package com.wjw.redis.stream.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 订单超时未评价处理类
 */
@Component
@Slf4j
public class OrderTimeoutNotEvaluated implements RedisDelayQueueHandle<Map<String, Object>> {
    @Override
    public void execute(Map<String, Object> map) {
        try {
            log.info("(收到订单超时未评价延迟消息) {}", map);
            // TODO 订单超时未评价，系统默认好评处理业务...
        } catch (Exception e) {
            log.error("处理订单超时未评价消息时发生异常: {}", e.getMessage(), e);
        }

    }
}
